package com.rzn.reading.mapper;

import com.rzn.reading.entity.Rank;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Random;

@Mapper
public interface RankMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Rank record);

    Rank selectByPrimaryKey(Integer id);

    List<Rank> selectAll();

    int updateByPrimaryKey(Rank record);

    Integer deleteByLiteratureId(Integer literatureId);

    Rank selectByUserIdAndLiteratureId(Integer userId,Integer literatureId);

    Double selectByLiteratureId(Integer literatureId);
}